home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 July / macformat-026.iso / mac / Demos / MF26 / CIRCUS 1 / LOOP.DIR / 00003.ls < prev    next >
Encoding:
Text File  |  1994-12-10  |  605 b   |  31 lines

  1. on stopMovie
  2.   global myColorDepth, mySoundLevel
  3.   if the machineType <> 256 then
  4.     releaseRearWindow()
  5.     set the colorDepth to myColorDepth
  6.     set the soundLevel to mySoundLevel
  7.   end if
  8. end
  9.  
  10. on keyDown
  11.   if (the key = "q") and the commandDown then
  12.     quit()
  13.   end if
  14.   if (the key < 8) and (the key > 0) then
  15.     set the soundLevel to integer(the key)
  16.   end if
  17.   if (the key = 8) or (the key = 9) then
  18.     set the soundLevel to 7
  19.   end if
  20.   if the key = 0 then
  21.     set the soundLevel to 1
  22.   end if
  23. end
  24.  
  25. on releaseRearWindow
  26.   global rwObj
  27.   if objectp(rwObj) then
  28.     rwObj(mdispose)
  29.   end if
  30. end
  31.